import request from '@/utils/request'

export function login(data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}

export function getInfo() {
  return request({
    method: 'get',
    url: '/sys/profile'
  })
}

export function modPass(data) {
  return request({
    method: 'put',
    url: '/sys/user/updatePass',
    data
  })
}
